import type { Enroll, EnrollDetail } from '@/types/enroll'
import { http } from '@/utils/http'

/**
 * 新增订单
 */
export const postEnrollAddApi = (enroll: Enroll) => {
  return http<Enroll>({
    method: 'POST',
    url: '/enroll/add',
    data: enroll,
  })
}
/**
 * 获取订单明细
 */
export const getEnrollDetailApi = (id: number) => {
  return http<EnrollDetail>({
    method: 'GET',
    url: '/enroll/detail',
    data: { id },
  })
}
